
import java.awt.Canvas;
import java.io.Serializable;


public class Door extends LevelObject implements Serializable{
	private static final long serialVersionUID = 1L;
	public Door(Canvas parent, Tile[][] tiles, int x, int y){
		startPositionX = x;
		startPositionY = y;
		object = new Tile[3][2];
		
		Tile t=new Tile();
		t.loadCeiling("tile4", parent);
		t.loadFloor("tile0", parent);
		t.stepOn=true;
		object[0][0]=t;
		t=new Tile();
		t.loadFloor("tile0", parent); 
		t.loadCeiling("tile5", parent);
		object[1][0]=t;
		t=new Tile();
		t.loadCeiling("tile6", parent);
		t.loadFloor("tile0", parent);
		t.stepOn=true;
		object[2][0]=t;
		t=new Tile();
		t.loadFloor("tile7", parent);
		t.stepOn=false;
		object[0][1]=t;
		t=new Tile();
		t.loadFloor("tile8", parent);
		object[1][1]=t;
		t=new Tile();
		t.loadFloor("tile9", parent);
		t.stepOn=false;
		object[2][1]=t;
	}
	
}
